package com.lc.fbtp.draftmsg.api.paper.cpr.cpr001;

import java.util.List;

import com.lc.fbtp.draftmsg.api.paper.CdInf;
import com.lc.fbtp.draftmsg.api.paper.MainBody;
import com.lc.fbtp.draftmsg.api.paper.MsgId;
import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * 权属登记申请报文
 * @author yeyun20029
 *
 */
public class CPR001 extends MainBody{

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 730416779030140891L;

	/**
	 * 报文标识
	 */
	@XStreamAlias("MsgId")
	private MsgId MsgId;
	
	/**
	 * 登记信息
	 */
	@XStreamAlias("RgtInf")
	private RgtInf RgtInf;
	
	/**
	 * 票据信息集合
	 */
	@XStreamAlias("CdInfs")
	private List<CdInf> CdInfs;

	public MsgId getMsgId() {
		return MsgId;
	}

	public void setMsgId(MsgId MsgId) {
		this.MsgId = MsgId;
	}

	public RgtInf getRgtInf() {
		return RgtInf;
	}

	public void setRgtInf(RgtInf RgtInf) {
		this.RgtInf = RgtInf;
	}

	public List<CdInf> getCdInfs() {
		return CdInfs;
	}

	public void setCdInfs(List<CdInf> CdInfs) {
		this.CdInfs = CdInfs;
	}

	@Override
	public String getId() {
		if(MsgId != null){
			return MsgId.getId();
		}
		return null;
	}

	@Override
	public String getDtTm() {
		if(MsgId != null){
			return MsgId.getCreDtTm();
		}
		return null;
	}

	@Override
	public String getOrgnlId() {
		return null;
	}
	
}
